{% extends 'base.html' %}
 {% block title%}
    <title>登录</title>
    {% endblock %}
{% block content %}
<div class="container">
<form class="form-horizontal" role="form" action="/commit_login"  method="POST">
  <div class="form-group">
    <label for="firstname" class="col-sm-2 control-label">名字</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="firstname" name="name" placeholder="请输入名字">
    </div>
  </div>
  <div class="form-group">
    <label for="psw" class="col-sm-2 control-label">密码</label>
    <div class="col-sm-4">
      <input type="password" class="form-control" id="psw" name="psw" placeholder="请输入密码">
    </div>
  </div>
  
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" class="btn btn-default">登录</button>
    </div>
  </div>
</form>
</div>
{% endblock %}